Julien Cristau [Thu, 23 Dec 2010 12:50:13 +0000 (13:50 +0100)]
gdk/x11: don't select RANDR events if the extension is missing
Prevents an Xlib warning on Xnest, or Xorg with xinerama, or other
non-RANDR-capable xserver. Reintroduce a have_randr12 field in
GdkDisplayX11 to avoid having to call XRRQuery{Extension,Version} twice,
and don't select randr 1.2 events if that's false.
https://bugzilla.gnome.org/show_bug.cgi?id=634711
Signed-off-by: Julien Cristau <jcristau@debian.org>
Kristian Høgsberg [Mon, 3 Jan 2011 16:29:25 +0000 (11:29 -0500)]
configure.ac: Consolidate gdk backend specific checks and code
Only the big chunk of x11 checks is left further down in the file,
but that depends on variables and checks above it, so we'll leave that in
place for now.
Kristian Høgsberg [Mon, 3 Jan 2011 15:55:23 +0000 (10:55 -0500)]
Silence automake warnings
When commenting out a binary, also comment out the related variables.
Don't include Makefile.decl in gtk-doc Makefile.am's as they disagree
on assigning to EXTRA_DIST.
Kristian Høgsberg [Mon, 3 Jan 2011 15:45:37 +0000 (10:45 -0500)]
configure.ac: Support multiple GDK backends in one build
Benjamin Otte [Mon, 3 Jan 2011 16:42:35 +0000 (17:42 +0100)]
gdk: Simplify code
Move a previous vfunc into the only caller.
Benjamin Otte [Mon, 3 Jan 2011 16:31:54 +0000 (17:31 +0100)]
gdk: Get rid of GdkDisplayDeviceHooks
Move the only user to call the function directly and copy the called
function over.
Benjamin Otte [Mon, 3 Jan 2011 16:16:20 +0000 (17:16 +0100)]
gdk: Move get_device_state out of the display hooks
Previous callers now use _gdk_device_query_state() directly.
Benjamin Otte [Mon, 3 Jan 2011 16:01:36 +0000 (17:01 +0100)]
gdk: Simplify code
Fold the previous vfunc into the only caller.
Benjamin Otte [Mon, 3 Jan 2011 15:56:20 +0000 (16:56 +0100)]
gdk: Move window_get_device_position function out of the device hooks
Matthias Clasen [Mon, 3 Jan 2011 16:27:19 +0000 (11:27 -0500)]
Some configure.ac cleanups
Change from --with-xinput to --enable-xinput, and consistently
use AC_HELP_STRING. Also document the packagekit options in the
docs.
Benjamin Otte [Mon, 3 Jan 2011 15:49:13 +0000 (16:49 +0100)]
API: gdk: Remove gdk_display_set_device_hooks()
There's no usecase for them, so remove them before we have to commit to
keeping an API.
Make the hooks private for now, actually removing them will come in
followup patches.
Benjamin Otte [Mon, 3 Jan 2011 15:34:48 +0000 (16:34 +0100)]
API: gdk: Remove gdk_display_set_pointer_hooks()
Its usecase was GERD - http://testbit.eu/~timj/historic/gerd/ - and that
project is long since dead.
I couldn't find any app using it after asking around and googling either.
Benjamin Otte [Mon, 3 Jan 2011 15:05:16 +0000 (16:05 +0100)]
API: gdk: Remove gdk_set_pointer_hooks()
Its usecase was GERD - http://testbit.eu/~timj/historic/gerd/ - and that
project is long since dead.
It has been superseded in GTK 2.2 by GdkDisplayPointerHooks anyway.
Benjamin Otte [Mon, 3 Jan 2011 15:16:02 +0000 (16:16 +0100)]
cups: Someone can neither type, read compiler output and run tests.
Being able to do one of these would have caught this.
Matthias Clasen [Mon, 3 Jan 2011 14:34:04 +0000 (09:34 -0500)]
cups printbackend: create a pdf surface when appropriate
This should address bug 560177.
Based on a patch by Adrian Johnson.
Matthias Clasen [Mon, 3 Jan 2011 13:02:41 +0000 (08:02 -0500)]
Remove gtk_printer_new from gtkprintbackend.h
The function has been in gtkprinter.h forever.
Adrian Johnson [Wed, 29 Dec 2010 05:34:49 +0000 (16:04 +1030)]
Set file GtkPrinter accepts_pdf/ps based on selected format
Adrian Johnson [Tue, 28 Dec 2010 14:48:02 +0000 (01:18 +1030)]
Set "accepts-pdf" property to true only if supported by the print backend
Carlos Garcia Campos [Mon, 3 Jan 2011 12:09:00 +0000 (13:09 +0100)]
GtkRadioButton: Use "radio" style class instead of "check"
Matthias Clasen [Mon, 3 Jan 2011 04:57:03 +0000 (23:57 -0500)]
Drop no-longer-used migration docs
Nguyễn Thái Ngọc Duy [Tue, 28 Dec 2010 03:20:11 +0000 (10:20 +0700)]
gdkdnd-x11.c: fix building without HAVE_XCOMPOSITE
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Nguyễn Thái Ngọc Duy [Tue, 28 Dec 2010 03:19:52 +0000 (10:19 +0700)]
gdkcursor-x11.c: fix building without HAVE_XCURSOR
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Matthias Clasen [Mon, 3 Jan 2011 04:30:02 +0000 (23:30 -0500)]
Move GtkSpinButton docs inline
...and modernize the examples at the same time.
This fixes a problem pointed out in bug 638193.
Matthias Clasen [Mon, 3 Jan 2011 02:40:49 +0000 (21:40 -0500)]
Fix list handling in gdk_x1_display_init_input
Pointed out in bug 638386.
Kjartan Maraas [Sun, 2 Jan 2011 18:32:29 +0000 (19:32 +0100)]
Updated Norwegian bokmål translation from Torstein Adolf Winterseth
Kjartan Maraas [Sun, 2 Jan 2011 18:31:56 +0000 (19:31 +0100)]
Updated Norwegian bokmål translation from Torstein Adolf Winterseth
John Ralls [Sun, 2 Jan 2011 18:23:20 +0000 (10:23 -0800)]
Fix refresh of static autorelease_pool so that it doesn't happen in gtk-nested loops.
Hans Breuer [Sun, 2 Jan 2011 11:36:16 +0000 (12:36 +0100)]
c99ism: declaration in the mid of a block
Hans Breuer [Sun, 2 Jan 2011 11:18:33 +0000 (12:18 +0100)]
win32: disable gdk_display_get_default ()->core_pointer
I neither know how to trigger this code nor what would be
the suggested replacement API. BUt it's the last thing stopping
me to compile GTK3 for win32.
Hans Breuer [Sun, 2 Jan 2011 11:11:34 +0000 (12:11 +0100)]
win32: include gtkprivate.h for win32 GTK_DATA_PREFIX
Hans Breuer [Sun, 2 Jan 2011 11:10:00 +0000 (12:10 +0100)]
Avoid C99 sinf()
Hans Breuer [Sun, 2 Jan 2011 11:07:47 +0000 (12:07 +0100)]
win32: use GtkSocketPrivate
Hans Breuer [Sun, 2 Jan 2011 11:06:38 +0000 (12:06 +0100)]
win32: ported backend specific code to now backend specific API
Hans Breuer [Sun, 2 Jan 2011 11:03:27 +0000 (12:03 +0100)]
Protect Unix specific print functions with G_OS_UNIX
Although gtk.symbols seems to be unused on Unix now it still
must not contain unprotected Unix only functions, because they
can not be exported on win32.
Hans Breuer [Sun, 2 Jan 2011 11:00:44 +0000 (12:00 +0100)]
win32: update msvc build
Hans Breuer [Sun, 2 Jan 2011 10:51:25 +0000 (11:51 +0100)]
win32: gdk3 resurrection
There are sure regressions but basic stuff seems to be working
again after all the API breakage done with comments like
"Win32 and Quartz need to be ported still."
Hans Breuer [Sun, 2 Jan 2011 12:29:23 +0000 (13:29 +0100)]
Protect inclusion of unistd.h
Hans Breuer [Sun, 2 Jan 2011 12:05:46 +0000 (13:05 +0100)]
Fix line endings
The unix version had CrLf which results in modified by checkout
under windows.
Daniel Nylander [Fri, 31 Dec 2010 00:42:34 +0000 (01:42 +0100)]
Updated Swedish translation
Daniel Nylander [Thu, 30 Dec 2010 20:15:44 +0000 (21:15 +0100)]
Updated Swedish translation
Jorge González [Wed, 29 Dec 2010 21:51:20 +0000 (22:51 +0100)]
Updated Spanish translation
Fran Diéguez [Wed, 29 Dec 2010 12:05:44 +0000 (13:05 +0100)]
Solved bug 638231 in Galician translations
Tristan Van Berkom [Wed, 29 Dec 2010 09:20:32 +0000 (18:20 +0900)]
Make GtkCheckButton's label left aligned by default.
Since we no longer limit the label's allocation to the minimum, now
we take a saner approach to left aligning the label.
Tristan Van Berkom [Wed, 29 Dec 2010 07:30:38 +0000 (16:30 +0900)]
Fixed unused variable in GtkCheckButton.
Tristan Van Berkom [Wed, 29 Dec 2010 07:26:05 +0000 (16:26 +0900)]
Fixed generic height-for-width implementation of GtkBin to consider request adjustments
Since "->adjust_size_request()" was added, it became important for GtkBin's
generic height-for-width implementation to further check the requests
using this vfunc.
Tristan Van Berkom [Wed, 29 Dec 2010 07:19:48 +0000 (16:19 +0900)]
Make GtkCheckButton allocate all remaining space to it's child instead
of limiting it to it's minimum size.
This fixes height-for-width labels inside a GtkCheckButton, for some
reason GtkCheckButton was limiting the child allocation to the child's
minimum request, probably for the sake of virtual left-alignment of
the child label to be beside the checkmark. This should be done by
other means if nescesarry.
Tristan Van Berkom [Wed, 29 Dec 2010 07:18:04 +0000 (16:18 +0900)]
Added proper height-for-width implementation to GtkAlignment.
For "padding" cases, it would be ok to fallback on GtkBin class
implementation of height-for-width. However in cases where the
user set's an xscale/yscale the GtkAlignment needs to take care
of properly adjusting the for_size when querying it's child.
Tristan Van Berkom [Wed, 29 Dec 2010 07:12:11 +0000 (16:12 +0900)]
Removed checks in gtksizerequest.c
Checks were in place to ensure that widgets never request taller
or wider than screen size. This was there to test a theory about
scrolled window children functioning correctly with dynamic content
however it breaks GtkViewport children which can generally return a
value taller than screen height intentionally, GtkViewport uses this
value to update the adjustments.
Carlos Garnacho [Tue, 28 Dec 2010 18:03:46 +0000 (19:03 +0100)]
Make GtkToolbar use GtkStyleContext
Carlos Garnacho [Tue, 28 Dec 2010 18:02:40 +0000 (19:02 +0100)]
Make GtkHandleBox use GtkStyleContext
Carlos Garnacho [Tue, 28 Dec 2010 17:59:45 +0000 (18:59 +0100)]
Make GtkSwitch use GtkStyleContext
Carlos Garnacho [Tue, 28 Dec 2010 16:51:46 +0000 (17:51 +0100)]
Make GtkFileChooserEntry make GtkStyleContext
Carlos Garnacho [Tue, 28 Dec 2010 16:42:27 +0000 (17:42 +0100)]
Make GtkProgressBar use GtkStyleContext
Carlos Garnacho [Tue, 28 Dec 2010 16:41:48 +0000 (17:41 +0100)]
Make GtkScrolledWindow use GtkStyleContext
Carlos Garnacho [Tue, 28 Dec 2010 16:39:08 +0000 (17:39 +0100)]
Make GtkEventBox use GtkStyleContext.
Carlos Garnacho [Tue, 28 Dec 2010 16:37:22 +0000 (17:37 +0100)]
Make GtkFrame use GtkStyleContext.
Carlos Garnacho [Sat, 25 Dec 2010 10:59:56 +0000 (11:59 +0100)]
Fix leak in GtkStyle.
Tristan Van Berkom [Tue, 28 Dec 2010 14:15:39 +0000 (23:15 +0900)]
Avoid rendering frames when shadow type argument is GTK_SHADOW_NONE in
gtk_paint_* functions.
Ignacio Casal Quinteiro [Mon, 27 Dec 2010 23:03:29 +0000 (00:03 +0100)]
Fix docs.
Matthias Clasen [Tue, 28 Dec 2010 00:24:05 +0000 (19:24 -0500)]
Remove bashisms from configure.ac
Pointed out by Koop Mast in
https://bugzilla.gnome.org/show_bug.cgi?id=637974
Benjamin Otte [Mon, 27 Dec 2010 19:08:50 +0000 (20:08 +0100)]
API: gdk: Remove gdk_device_set_source()
The source of a device is not changeable.
Benjamin Otte [Mon, 27 Dec 2010 18:43:24 +0000 (19:43 +0100)]
testgtk: Don't use deprecated APIs
Benjamin Otte [Mon, 27 Dec 2010 18:27:16 +0000 (19:27 +0100)]
testgtk: Use the relevant device to query the widget to snapshot
Also gets rid of deprecated functions.
Benjamin Otte [Mon, 27 Dec 2010 17:45:39 +0000 (18:45 +0100)]
API: gdk: Make gdk_display_get_window_at_device_position() a device API
It's now called gdk_device_get_window_at_position(). It doesn't make
sense to keep device-specific API part of the display.
Benjamin Otte [Mon, 27 Dec 2010 17:03:38 +0000 (18:03 +0100)]
API: gdk: gdk_display_get_device_state() => gdk_device_get_position()
The API was not display-specific, but belonged to the device. Also, we
didn't find a user of the modifier mask, so we dropped it.
Alejandro Piñeiro [Sat, 25 Dec 2010 23:43:02 +0000 (00:43 +0100)]
[gail] Clean the code to check the redundan object on the show watcher
The watcher doesn't add a window if is a redundant object. This
patch fixes two things:
* The check was made twice.
* It uses a check with the string "redundant object", when the
defined role ATK_ROLE_REDUNDANT_OBJECT is available
Alejandro Piñeiro [Sat, 25 Dec 2010 23:13:07 +0000 (00:13 +0100)]
[gail] Proper connection to a toplevel window destroy signal
Only connect to the destroy of a toplevel window if it was
really added to the toplevel list of windows.
The destroy callback was added to remove the window from
the toplevel list. The callback doesn't cause a error,
but would iterate on the toplevel list without success.
Matthias Clasen [Mon, 27 Dec 2010 06:02:52 +0000 (01:02 -0500)]
Fix some issues with initial setup of GdkX11DisplayManager
We need to defer setting the default display until the
GdkDisplay is fully initialized. Also, short-circuit some
encoding conversions when creating windows, to avoid an
implicit dependency on the display being in the list of
displays yet.
Matthias Clasen [Mon, 27 Dec 2010 04:40:59 +0000 (23:40 -0500)]
GtkTreeView: Don't use deprecated grab api
Matthias Clasen [Mon, 27 Dec 2010 04:17:10 +0000 (23:17 -0500)]
Remove pointless sealing from GtkTextMark
Matthias Clasen [Mon, 27 Dec 2010 03:39:18 +0000 (22:39 -0500)]
Remove pointless sealing from GtkTextChild
Matthias Clasen [Mon, 27 Dec 2010 01:36:51 +0000 (20:36 -0500)]
Removed sealed members from GtkMenuItem
A S Alam [Mon, 27 Dec 2010 02:00:19 +0000 (07:30 +0530)]
update Punjabi Properities file
Benjamin Otte [Mon, 27 Dec 2010 00:05:40 +0000 (01:05 +0100)]
tooltip: Don't use deprecated APIs
Benjamin Otte [Sun, 26 Dec 2010 23:50:30 +0000 (00:50 +0100)]
notebook: Use nondeprecated API to query coordinates
Benjamin Otte [Sun, 26 Dec 2010 23:45:56 +0000 (00:45 +0100)]
hsv: Fix gcc warnings
Matthias Clasen [Sat, 25 Dec 2010 05:29:23 +0000 (00:29 -0500)]
Fix some more typos
Matthias Clasen [Sat, 25 Dec 2010 05:26:22 +0000 (00:26 -0500)]
Fix a few typos
Matthias Clasen [Sat, 25 Dec 2010 05:02:39 +0000 (00:02 -0500)]
Fix up GDK docs
Matthias Clasen [Sat, 25 Dec 2010 01:01:24 +0000 (20:01 -0500)]
Add deprecation guards for deprecated grab APIs
Matthias Clasen [Sat, 25 Dec 2010 01:00:19 +0000 (20:00 -0500)]
Don't use gdk_{pointer,keyboard}_grab
Instead use gdk_device_grab.
Matthias Clasen [Fri, 24 Dec 2010 22:37:00 +0000 (17:37 -0500)]
Add deprecation guards for deprecated GdkAppLaunchContext API
Also adapt the docs to not use deprecated API.
Matthias Clasen [Fri, 24 Dec 2010 22:36:19 +0000 (17:36 -0500)]
Avoid some gtk-doc warnings
Matthias Clasen [Fri, 24 Dec 2010 21:27:31 +0000 (16:27 -0500)]
Fix gdk_x11_display_text_property_to_text_list
This was an incomplete attempt to get rid of the custom free function.
Lets just keep it for now. Bug 637849, patch by Dan Winship.
Also add a test case for this function.
Matthias Clasen [Fri, 24 Dec 2010 20:54:12 +0000 (15:54 -0500)]
Consistently hide class structs
And, since we've decided to keep the structs private, there is
no point in having the standard GObject clas macros anymore either.
John Ralls [Fri, 24 Dec 2010 19:25:40 +0000 (11:25 -0800)]
Rename GdkQuartzWindow.h and .c to GdkQuartzNSWindow.h and .c
Normally HFS+ (the MacOSX file system) isn't case-sensitive, so having both
GtkQuartzWindow.h and gtkquartzwindow.h causes the latter to overwrite the
former during git pull, breaking the build.
Carlos Garnacho [Fri, 24 Dec 2010 19:16:22 +0000 (20:16 +0100)]
Use gtk_style_context_get_font() in GtkSpinButton
Carlos Garnacho [Fri, 24 Dec 2010 18:33:14 +0000 (19:33 +0100)]
Make GtkSeparator use GtkStyleContext
Carlos Garnacho [Fri, 24 Dec 2010 18:30:58 +0000 (19:30 +0100)]
Make GtkPaned use GtkStyleContext
Carlos Garnacho [Fri, 24 Dec 2010 18:21:39 +0000 (19:21 +0100)]
Do not set "entry" class in spinbutton buttons.
Also, fix an unpaired gtk_style_context_save() call.
Carlos Garnacho [Fri, 24 Dec 2010 17:05:07 +0000 (18:05 +0100)]
Bug 637910 - GtkSpinner - does not animate
Fix widget-to-window coordinates translation in the
style context animation code.
Carlos Garnacho [Tue, 21 Dec 2010 13:49:06 +0000 (14:49 +0100)]
Make GtkArrow use GtkStyleContext
Carlos Garnacho [Tue, 21 Dec 2010 17:44:53 +0000 (18:44 +0100)]
Fix color name (as of rgb.txt) parsing in symbolic colors
The end of the substring wasn't being detected properly.
Carlos Garnacho [Tue, 21 Dec 2010 13:47:17 +0000 (14:47 +0100)]
Make GtkAccelLabel use GtkStyleContext.
Javier Jardón [Fri, 24 Dec 2010 17:42:24 +0000 (18:42 +0100)]
gailmenushell.c: Fix typo
Javier Jardón [Fri, 24 Dec 2010 16:38:26 +0000 (17:38 +0100)]
build: Use autoreconf
Kristian Rietveld [Fri, 24 Dec 2010 13:45:19 +0000 (14:45 +0100)]
Check for NULL pointer
Javier Jardón [Fri, 24 Dec 2010 13:39:55 +0000 (14:39 +0100)]
docs: Add docs about how to get a GtkDevice
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=637895
Matthias Clasen [Fri, 24 Dec 2010 03:16:50 +0000 (22:16 -0500)]
Drop GtkThemeEngine
It is not used anymore.
Matthias Clasen [Fri, 24 Dec 2010 03:11:50 +0000 (22:11 -0500)]
Fix a few warnings